import request from '@/api'

// 请假
export const addNote = (params: INoteForm) => {
  return request.post<INoteForm>('/system/note', params)
}

// 获取请假表
export const getNoteStudent = (params?: IPage) => {
  return request.get<IResponse>('/system/note/student', params)
}

// 获取请假表
export const getNoteTeacher = (params?: IPage) => {
  return request.get<IResponse>('/system/note/teacher', params)
}

// 跟新假条状态
export const updateNote = (id: number, applyStatus: number) => {
  return request.put('/system/note/' + id + '/' + applyStatus)
}
